const pool = Symbol('pool')

export class Pipe {
        [pool]={}
        constructor() {}
        set(key, value) {
                this[pool][key] = value
        }
        get(key) {
                return this[pool][key]
        }
        destroy(key){
           delete this[pool][key]
        }
        clear(){
                this[pool] = {}   
        }
        getSize(){
          return Object.keys(this[pool]).length     
        }
}